package ksx.hibernate.util;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class HibernateUtil {
	private static final SessionFactory sessionFactory;
	private static String CONFIG_FILE_LOCATION = "/ksx/hibernate/test/hibernate.cfg.xml";
	static {
		sessionFactory = new Configuration().configure(CONFIG_FILE_LOCATION).buildSessionFactory();
	}
	
	public static SessionFactory getSessionFactory(){
		return sessionFactory;
	}
}
